# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=rhasspy-nlu
pkgver=0.4.0
pkgrel=1
pkgdesc="Natural language understanding library for Rhasspy"
url="https://github.com/rhasspy/rhasspy-nlu"
arch="all"
license="MIT"
depends="py3-grapheme py3-numpy py3-networkx py3-num2words python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/rhasspy/rhasspy-nlu/archive/refs/tags/v$pkgver/rhasspy-nlu-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python*/site-packages/tests
}

sha512sums="
fbb4ab21d8b11a1d3c5c26445795d28567eabd532bc332446b75236fc0856abf6c1ede423620b717d2ff8294b69b9265e3ea53a5cb397df2f4e959fa9805a47d  rhasspy-nlu-0.4.0.tar.gz
"
